<h1>Edit My Account</h1>
<br /><%= link_to "My Profile", user_path %>
<% form_for @user do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </p>
  <p>
    <%= f.label :password %><br />
    <%= f.password_field :password %>
  </p>
  <p>
    <%= f.label :password_confirmation %><br />
    <%= f.password_field :password_confirmation %>
  </p>
  <p>
    <%= render :partial => 'profile' %>
  </p>
  <%= f.submit "Update Profile" %>
<% end %>
 